package com.wash.shoes.domain.dy.store;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Mask {
    public static String MaskPhoneNumber(String data) {
        Pattern pattern = Pattern.compile("(\\d{3})\\d{4}(\\d{4})");
        Matcher matcher = pattern.matcher(data);
        return matcher.replaceAll("$1****$2");
    }
}
